#pragma once
#include<functional>

class EventLoop;
class MyChannel;
class myepoll;
class Socket;


class Acceptor
{
private:
    /* data */
    EventLoop *loop;
    Socket *socket;
    MyChannel *accCh;

public:
    Acceptor(/* args */);
    Acceptor(EventLoop *_loop);
    ~Acceptor();

    void acceptConnection();
    std::function<void(Socket*)> newConnectionCallback;
    void setNewConnectionCallBack(std::function<void(Socket*)>);
};

